<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.example.demo2.pojo.student" %>
<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
	<meta charset="UTF-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
	<link rel="stylesheet" href="./css/font.css">
	<link rel="stylesheet" href="./css/xadmin.css">
	<script src="./lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="./js/xadmin.js"></script>
</head>
<body>

<div class="layui-fluid">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">
			<div class="layui-card">
				<div class="layui-card-body ">
					<form class="layui-form layui-col-space5" action="/demo2_war_exploded/FindStudentByname" method="post">
						<div class="layui-input-inline layui-show-xs-block">
							<input type="text" name="name" placeholder="请输入姓名" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-input-inline layui-show-xs-block">
							<button class="layui-btn">
								<i class="layui-icon">&#xe615;</i>
							</button>
						</div>
					</form>
				</div>

				<div class="layui-card-body ">
					<table class="layui-table layui-form">
						<thead>
						<tr>
							<th>编号</th>
							<th>姓名</th>
							<th>性别</th>
							<th>年龄</th>
							<th>班级</th>
							<th>专业</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						<c:forEach var="student" items="${list}">
							<tr>
								<td><c:out value="${student.sid}"/></td>
								<td><c:out value="${student.name}"/></td>
								<td><c:out value="${student.gender}"/></td>
								<td><c:out value="${student.age}"/></td>
								<td><c:out value="${student.class1}"/></td>
								<td><c:out value="${student.major}"/></td>
								<td class="td-manage">
									<a title="成绩查看" href="FindStudentChengji?id=<c:out value="${student.sid}" />">成绩查看</a>
									<a title="编辑" href="FindStudentById?id=<c:out value="${student.sid}" />">编辑</a>
									<a title="删除" href="DelStudent?id=<c:out value="${student.sid}" />">删除</a>
								</td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
	layui.use([ 'laydate', 'form' ], function() {
		var laydate = layui.laydate;

		//执行一个laydate实例
		laydate.render({
			elem : '#start' //指定元素
		});

		//执行一个laydate实例
		laydate.render({
			elem : '#end' //指定元素
		});
	});
</script>
</html>